package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 退款申请表
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-12-17 11:52:18
 */
@Getter
@Setter
@TableName("t_refund")
@ApiModel(value = "Refund对象", description = "退款申请表")
public class Refund implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id",hidden = true)
      @TableId("id")
    private String id;

    @ApiModelProperty("申请用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("订单总价格")
    @TableField("order_total_price")
    private BigDecimal orderTotalPrice;

    @ApiModelProperty("支付方式（WX=微信支付，ZFB=支付宝支付）")
    @TableField("pay_type")
    private String payType;

    @ApiModelProperty("优惠劵数量")
    @TableField("coupon_count")
    private Integer couponCount;

    @ApiModelProperty(value = "状态(0=已申请 1=成功退款 2=驳回退款)",hidden = true)
    @TableField("state")
    private String state;

    @ApiModelProperty("预计时间")
    @TableField("expect_time")
    private Date expectTime;

    @ApiModelProperty(value = "是否删除(0=否，1=是)",hidden = true)
    @TableField("is_delete")
    @TableLogic
    private String isDelete;

    @ApiModelProperty(value = "创建时间",hidden = true)
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间",hidden = true)
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
